package com.zen.demo.common.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author alexzshl
 * @since 2022/1/28 21:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class R<T> {
    private Integer code;
    private String msg;
    private T data;

    public static <T> R<T> OK(T data) {
        return new R<>(0, "", data);
    }
}
